//
//  FPNoticePopupView.m
//  FinanceProject
//
//  Created by 陈显摆 on 2025/5/15.
//

#import "FPNoticePopupView.h"

@implementation FPNoticePopupView

- (void)awakeFromNib {
    
    [super awakeFromNib];
    
    self.titleLab.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.contentLab.textColor = [UIColor hexColor:@"#6A6A6A"];
    
    self.btn1.clipsToBounds = YES;
    self.btn1.layer.cornerRadius = 22.f;
    self.btn1.layer.borderWidth = 1.f;
    self.btn1.layer.borderColor = [UIColor hexColor:@"#9A9A9A"].CGColor;
    [self.btn1 setTitleColor:[UIColor hexColor:@"#9A9A9A"] forState:(UIControlStateNormal)];
    self.btn1.backgroundColor = UIColor.whiteColor;
    
    self.btn3.clipsToBounds = YES;
    self.btn3.layer.cornerRadius = 22.f;
    self.btn3.backgroundColor = MAIN_BLUE_COLOR;
    [self.btn3 setTitleColor:UIColor.whiteColor forState:(UIControlStateNormal)];
    
    self.btn2.clipsToBounds = YES;
    self.btn2.layer.cornerRadius = 22.f;
    self.btn2.backgroundColor = MAIN_BLUE_COLOR;
    [self.btn2 setTitleColor:UIColor.whiteColor forState:(UIControlStateNormal)];
}

- (void)showBtnCounts:(NSUInteger)count {
    
    if (count == 1) {
        
        self.view1.hidden = YES;
        self.view2.hidden = YES;
        self.view3.hidden = NO;
    }
    else {
        
        self.view1.hidden = NO;
        self.view2.hidden = NO;
        self.view3.hidden = YES;
    }
}

- (void)setBtn1String:(NSString *)btn1String {
    
    _btn1String = btn1String;
    [self.btn1 setTitle:btn1String forState:(UIControlStateNormal)];
}

- (void)setBtn2String:(NSString *)btn2String {
    
    _btn2String = btn2String;
    [self.btn2 setTitle:btn2String forState:(UIControlStateNormal)];
}

- (void)setBtn3String:(NSString *)btn3String {
    
    _btn3String = btn3String;
    [self.btn3 setTitle:btn3String forState:(UIControlStateNormal)];
}

- (void)setMianTitleString:(NSString *)mainTitleString {
    
    _mainTitleString = mainTitleString;
    self.titleLab.text = mainTitleString;
}



- (void)setContentString:(NSString *)contentString {
    
    _contentString = contentString;
    self.contentLab.text = contentString;
}


@end
